# -*- coding:utf-8 -*-
"""
Author：Administrator
Date:2021年12月22日
"""
import numpy as np
import matplotlib.pyplot as plt

n1 = plt.imread('../source/flower.jpg')
plt.imshow(n1)
n2 = np.array([0.299, 0.587, 0.114])
x = np.dot(n1, n2)
plt.imshow(x, cmap='gray')
plt.show()
